import format from '@dfeidao/atom-mobile/dt/format';
import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
// import nodejs from '@dfeidao/atom-mobile/msg/nodejs';
import get from '@dfeidao/atom-mobile/local/get';
import set from '@dfeidao/atom-mobile/local/set';


import render from '@dfeidao/atom-mobile/render/render';

export default async function a003(fd: IFeidaoAiMobile, e: Date) {

	const d = get(fd, 'data') as { sex: string, sexing: string, birthday: number, brtime: string };
	const newtime = e;

	d.birthday = newtime.getTime();
	d.brtime = format(d.birthday, 0);
	render(fd, { d });
	set(fd, 'data', d);
}
